package org.akomantoso.core.data;

import java.io.IOException;

import org.akomantoso.core.io.Output;

/**
 * the element intro is a heading element in a hierarchy that contains paragraphs introducing one or more lower
 * hierarchical elements.
 * 
 * <pre>
 * 	<xsd:element name="intro" type="blocksopt"/>
 * </pre>
 * 
 * @author <a href="mailto:jacques.militello@gmail.com">Jacques Militello</a>
 * 
 * @since http://www.akomantoso.org/1.0
 * 
 */
public final class Intro extends Blocksopt {

	public static final String ELEMENT = "intro";

	/**
	 * @see org.akomantoso.core.data.Blocksopt#writeExternal(org.akomantoso.core.io.Output)
	 */
	@Override
	public <T extends Output> void writeExternal(T out) throws IOException {
		out.writeStart(ELEMENT);
		super.writeExternal(out);
		out.writeEnd();
	}

}